package enemy;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

import bullets.BulletEnemy;
import core.Boom;

public class BigAirPlane extends Enemy implements Score{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3705985700762487619L;
	private static BufferedImage[] image = new BufferedImage[1];
	private int score=1;
	static {
		image[0] = readImage("src/images/bigplane.png");
	}
	
	public BigAirPlane() {
		super();
	}

	public BigAirPlane(int bigSpeed) {
		super(84, 114);
		this.speed = bigSpeed;
	}

	@Override
	public void step() {
		y+=speed;		
	}
	public void paintImage(Graphics g) {
		if(status==live) {
			g.drawImage(image[0], x, y,null);
		}
		if(status==dead) {
			g.drawImage(Boom.image[index-1], x, y,null);

		}		
	}
	
	public String toString() {
		return "BigAirPlane [x=" + x + ", y=" + y + ", status=" + status + "]";
	}

	@Override
	public BulletEnemy enemyShoot() {
		BulletEnemy be = new BulletEnemy(this.x+this.width/2,this.y+this.height);
		return be;
	}
	public int getScore() {
		return score;
	}
}
